import request from '@/utils/request'

// 查询检验派工单列表
export function listNcInspectionWorkOrder(query) {
  return request({
    url: '/business/NcInspectionWorkOrder/list',
    method: 'get',
    params: query
  })
}

// 查询检验派工单详细
export function getNcInspectionWorkOrder(id) {
  return request({
    url: '/business/NcInspectionWorkOrder/' + id,
    method: 'get'
  })
}

// 新增检验派工单
export function addNcInspectionWorkOrder(data) {
  return request({
    url: '/business/NcInspectionWorkOrder',
    method: 'post',
    data: data
  })
}

// 修改检验派工单
export function updateNcInspectionWorkOrder(data) {
  return request({
    url: '/business/NcInspectionWorkOrder',
    method: 'put',
    data: data
  })
}

// 删除检验派工单
export function delNcInspectionWorkOrder(id) {
  return request({
    url: '/business/NcInspectionWorkOrder/' + id,
    method: 'delete'
  })
}
